package com.arshowbaby.ffmpeg;

import android.content.Context;
import android.graphics.PixelFormat;
import android.util.AttributeSet;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

/**
 * 创建日期: 2017/12/7 0007 on 17:09.
 * 描述:
 * 作者： zxy
 */

public class VideoView   extends SurfaceView {
    public VideoView(Context context) {
        super(context);
    }

    public VideoView(Context context, AttributeSet attrs) {
        super(context, attrs);
        init();
    }

    public VideoView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        init();
    }

    private   void  init( ){
       //初始化像素绘制的格式为RGBA_8888
        SurfaceHolder    holder=getHolder();
        holder.setFormat(PixelFormat.RGBA_8888);
    }
}























